<?php
/**
 * Description of formPassword
 *
 * @author dll_hell_2
 */
class formPassword extends labeledFormItem
{
    public static $maxLength = 32;
    public function __construct($name, $label = NULL) 
    {        
        parent::__construct($name, $label);
    }
    public function __toString()
    {        
        $result = parent::__toString();        
        $result .= sprintf("<input type =\"password\" name=\"%s\" maxlength=\"%d\"/>",
            $this->name,
            formPassword::$maxLength);
        return $result;
    }
}
?>
